package com.yunti.springboot.controller;

import com.yunti.springboot.service.ExamService;
import com.yunti.springboot.vo.Result;
import com.yunti.springboot.vo.req.ClassReq;
import com.yunti.springboot.vo.req.GetAllExamSubByClassReq;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/exam")
public class ExamController {

    @Resource
    private ExamService examService;

    @PostMapping("/getAllExamSubByClass")
    public Result getAllExamSubByClass(@RequestBody GetAllExamSubByClassReq getAllExamSubByClassReq){
        return examService.getAllExamSubByClass(getAllExamSubByClassReq);
    }
}
